import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

public class E {
    public static void main(String[] args) {
        C c = new C();
        String str1 = c.read();
        String[] strs = str1.split(",");
        String str2 = "";
        for (int i = 0; i < strs.length; i++) {
            for (char ch : strs[i].toCharArray()) {
                if ('0' <= ch && ch <= '9') {
                    str2 += ch;
                }
            }
        }
        F.main(new String[]{str2});
    }
}
